package com.bcxj.servicemap.service;

import com.bcxj.internalcommon.dto.ResponseResult;
import com.bcxj.servicemap.remote.ServiceClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * ClassName: ServiceFromMapService
 * Package: com.bcxj.servicemap.service
 * Description:
 *
 * @Author BCXJ
 * @Create 2024/10/31 21:30
 * @Version 1.0
 * @Since 1.0
 */
@Service
public class ServiceFromMapService {

    @Autowired
    private ServiceClient serviceClient;

    /**
     * 添加服务
     * @param name
     * @return
     */
    public ResponseResult add(String name) {
        return serviceClient.addTerminal(name);
    }
}
